package com.repair.service.Module;



import java.util.List;



import com.repair.dao.Module.IModuleDao;
import com.repair.domain.Module;
import com.repair.factory.DaoFactory;



public class ModuleService {
	private IModuleDao dao = (IModuleDao)DaoFactory.getInstance().getDao("ModuleDao");
	
	
	public void save(Module obj){
		this.dao.saveModule(obj);
	}
	public  List<Module> list(){
		return this.dao.getAllModule();
	}
	public void deleteModule(String id){
		this.dao.deleteModule(id);
	}
	
	public List<Module> serchmodule(String key){
		return this.dao.serchmodule(key);
	}
	
}
